package Test;

import static org.junit.Assert.*;
import leducHoldem.Data.Dealer;

import org.junit.Test;

public class DealerTest {

	@Test
	public void isChanceSetTestAfterFlop() {
		
		Dealer dealer = new Dealer();
		
		assertEquals(false, dealer.isChanceSet("J.ch.ch.J"));
	}
	
	@Test
	public void isChanceSetTestAfterFlopOne() {
		
		Dealer dealer = new Dealer();
		
		assertEquals(false, dealer.isChanceSet("J.ch.ch.J.b.c"));
	}
	
	@Test
	public void isChanceSetTestAfterFlopTwo() {
		
		Dealer dealer = new Dealer();
		
		assertEquals(false, dealer.isChanceSet("J.ch.ch.J.ch.ch"));
	}
	
	@Test
	public void isChanceSetTestAfterBeforeFlopButNotFinished() {
		
		Dealer dealer = new Dealer();
		
		assertEquals(false, dealer.isChanceSet("J.ch"));
	}
	
	@Test
	public void isChanceSetTestAfterBeforeFlopButNotFinishedOne() {
		
		Dealer dealer = new Dealer();
		
		assertEquals(false, dealer.isChanceSet("J.b"));
	}
	
	@Test
	public void isChanceSetTestWithTrueExpected() {
		
		Dealer dealer = new Dealer();
		
		assertEquals(true, dealer.isChanceSet("J.b.c"));
	}
	
	@Test
	public void isChanceSetTestWithTrueExpectedOne() {
		
		Dealer dealer = new Dealer();
		
		assertEquals(true, dealer.isChanceSet("J.ch.ch"));
	}


}
